using System.Data;
using System.Data.SqlClient;
using Kangaroo.IDAL;
using System;

namespace Kangaroo.DAL.SqlServer
{
    public class General:IGeneral
    {
        public void TestConnection()
        {
            SqlHelper.ExecuteScalar(SqlHelper.ConnectionString, CommandType.Text, "SELECT 1");
        }

        public static Exception DataErrorHandler(Exception ex)
        {
            LogWriter.Instance.WriteToLog(ex.Message);
            return ex;
        } 
    }
}